package com.bootdo.program.wallpaper.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.program.wallpaper.dao.BzBaseinfoDao;
import com.bootdo.program.wallpaper.domain.BzBaseinfoDO;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional(rollbackFor=Exception.class)
public class BzBaseinfoService  {
	@Autowired
	private BzBaseinfoDao bzBaseinfoDao;
	
	
	public BzBaseinfoDO get(Integer id){
		return bzBaseinfoDao.get(id);
	}

	public BzBaseinfoDO getByAppid(String appid){
		return bzBaseinfoDao.getByAppid(appid);
	}

	public BzBaseinfoDO getByPlatformType(Integer platformType){
		return bzBaseinfoDao.getByPlatformType(platformType);
	}

	public List<BzBaseinfoDO> list(Map<String, Object> map){
		return bzBaseinfoDao.list(map);
	}
	
	
	public int count(Map<String, Object> map){
		return bzBaseinfoDao.count(map);
	}
	
	
	public int save(BzBaseinfoDO bzBaseinfo){
		return bzBaseinfoDao.save(bzBaseinfo);
	}
	
	
	public int update(BzBaseinfoDO bzBaseinfo){
		return bzBaseinfoDao.update(bzBaseinfo);
	}
	
	
	public int remove(Integer id){
		return bzBaseinfoDao.remove(id);
	}
	
	
	public int batchRemove(Integer[] ids){
		return bzBaseinfoDao.batchRemove(ids);
	}
	
}
